package com.hd.trans.binding

import android.view.View
import androidx.databinding.BindingAdapter

/**
 * @Auther hjw
 * @Date 2021/3/22/14:12
 * @Description dataBinding view
 */
object ViewAdapter {
    @BindingAdapter(value = ["android:onDebouncedClick"], requireAll = false)
    @JvmStatic
    fun onDebouncedClick(
        view: View,
        action: () -> Unit
    ) {
        view.setOnDebouncedClickListener(action)
    }
}